import request from '@/utils/request'

export function getAllPermission() {
  return request({
    url: '/resources/queryAll',
    method: 'get',
    params: { pageNum: -1 }
  })
}



export function add(parames) {
  return request({
    url: '/resources/add',
    method: 'post',
    data: parames
  })
}

export function update(parames) {
  return request({
    url: '/resources/update',
    method: 'post',
    data: parames
  })
}

export function deleteFn(data) {
  return request({
    url: '/resources/deletes',
    method: 'delete',
    data
  })
}
